// 引入 request 方法，假设 request 方法已经定义在某个工具文件中
import request from '/@/utils/request';
import { MessageInput } from '../models';
// 定义 API 路径枚举
enum Api {
    SysMessageSendAllUser = '/sysMessage/sendAllUser',
    SysMessageSendOtherUser = '/sysMessage/sendOtherUser',
    SysMessageSendUser = '/sysMessage/sendUser',
    SysMessageSendUsers = '/sysMessage/sendUsers',
}

// 定义 API 方法
export const apiSysMessageSendAllUserPost = (body?: MessageInput) =>
    request({
        url: Api.SysMessageSendAllUser,
        method: 'post',
        data: body,
    });

export const apiSysMessageSendOtherUserPost = (body?: MessageInput) =>
    request({
        url: Api.SysMessageSendOtherUser,
        method: 'post',
        data: body,
    });

export const apiSysMessageSendUserPost = (body?: MessageInput) =>
    request({
        url: Api.SysMessageSendUser,
        method: 'post',
        data: body,
    });

export const apiSysMessageSendUsersPost = (body?: MessageInput) =>
    request({
        url: Api.SysMessageSendUsers,
        method: 'post',
        data: body,
    });